import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'stock_report',
		redirect: "/index",
	},
{
		path: '/index',
		name: 'index',
		component: (resolve) => require(['../views/index'], resolve)
	},
  {
  	path: '/other',
  	name: 'Other',
    component: (resolve) => require(['../views/other'], resolve)
  },
]

const router = new VueRouter({
	mode: 'history',
	base: '/stock_report/',
 	 routes
})

export default router
